package com.dries.portal.module.circle.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 圈子动态
 * 
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-08-26 14:27:42
 */
@Data
@TableName("xx_circle")
public class Circle implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 用户ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long userId;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 用户头像
	 */
	private String userAvatar;
	/**
	 * 动态内容
	 */
	private String circleContent;
	/**
	 * 图片
	 */
	private String circleImgs;
	/**
	 * 动态浏览量
	 */
	private Integer circlePageView;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改时间
	 */
	private Date modifiedTime;

//	@TableField(exist = false)
//	private List<CircleReply> replies;
//	@TableField(exist = false)
//	private List<CircleLikes> likes;

}
